package com.drg.center.entity.result;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@ApiModel("重点项目统计列表信息")
@Data
public class KeyProjectsTotalStatExcelVO implements Serializable {
    @ExcelProperty(value = "病例号", index = 0)
    private String caseCode;

    @ExcelProperty(value = "住院号", index = 1)
    private String inpatientCode;

    @ExcelProperty(value = "患者姓名", index = 2)
    private String patientName;

    @ExcelProperty(value = "患者性别", index = 3)
    private String patientSex;

    @ExcelProperty(value = "患者年龄（岁）", index = 4)
    private Integer patientAge;

    @ExcelProperty(value = "患者年龄，天", index = 5)
    private Integer ageDay;

    @ExcelProperty(value = "身份证号", index = 6)
    private String idCard;

    @ExcelProperty(value = "医保类型", index = 7)
    private String medicareType;

    @ExcelProperty(value = "统筹区", index = 8)
    private String coordinationArea;

    @ExcelProperty(value = "科室名称", index = 9)
    private String departName;

    @ExcelProperty(value = "床位号", index = 10)
    private String bedCode;

    @ExcelProperty(value = "主治医生", index = 11)
    private String doctorName;

    @ExcelProperty(value = "入院日期", index = 12)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime inHospitalDate;

    @ExcelProperty(value = "出院日期", index = 13)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate outHospitalDate;

    @ExcelProperty(value = "结算日期", index = 14)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate settleDate;

    @ExcelProperty(value = "住院天数", index = 15)
    private Integer inpatientDays;

    @ExcelProperty(value = "重点项目编码", index = 16)
    private String projectCode;

    @ExcelProperty(value = "重点项目名称", index = 17)
    private String keyProjectName;

    @ExcelProperty(value = "重点项目数量", index = 18)
    private Integer keyProjectNum;

    @ExcelProperty(value = "使用时间", index = 19)
    private String useTime;
}
